package com.kelvin.oocl.crm.bean.manager.config;

import com.kelvin.oocl.crm.bean.manager.annotation.Bean;
import com.kelvin.oocl.crm.bean.manager.annotation.Config;
import com.kelvin.oocl.crm.controller.CommandDispatcher;
import com.kelvin.oocl.crm.repository.ICustomerDao;
import com.kelvin.oocl.crm.repository.impl.CustomerDaoImpl;
import com.kelvin.oocl.crm.service.CommandParser;
import com.kelvin.oocl.crm.service.impl.CommandParserImpl;

@Config
public class SystemConfig {
	
	@Bean(name="customerDao")
	public ICustomerDao getCustomerDao(){
		return new CustomerDaoImpl();
	}
	
	@Bean(name="customerService")
	public CommandParser getCommandParser(){
		return new CommandParserImpl();
	}
	
	@Bean(name="customerController")
	public CommandDispatcher CommandDispatcher(){
		return new CommandDispatcher();
	}
}
